import Vue from 'vue'
import VueRouter from 'vue-router'
import Home from '../views/Home.vue'
 



Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'Home',
    component: Home
  },
  {
    path: '/Home',
    name: 'Home',
    component: Home
  },
  {
    path: '/about',
    name: 'About',
   component: () => import('../views/About.vue')
  },
  {
    path: '/shop',
    name: 'shop',
   component: () => import('../views/shop.vue')
  },
  {
    path: '/new',
    name: 'new',
   component: () => import('../views/new.vue')
  },
  {
    path: '/sort',
    name: 'sort',
   component: () => import('../views/sort.vue')
  },
  {
    path: '/login',
    name: 'login',
   component: () => import('../views/login.vue')
  },
  {
    path: '/shopcar',
    name: 'shopcar',
   component: () => import('../views/shopcar.vue')
  },
  {
    path: '/detail',
    name: 'detail',
   component: () => import('../views/detail.vue')
  },
  {
    path: '/adds',
    name: 'adds',
   component: () => import('../views/adds.vue')
  },
]



const router = new VueRouter({
  mode: 'hash',
  base: process.env.BASE_URL,
  routes
})

export default router
